//
//  UIButton+CreatUI.h
//  QuXiang
//
//  Created by Duncan on 2020/6/17.
//  Copyright © 2020 NanHuaiZi. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIButton (CreatUI)

/// 文字button
+ (UIButton *)initWithTitle:(NSString *)title titleColor:(UIColor *)titleColor fontSize:(NSInteger)fontSize;

+ (UIButton *)initWithTitle:(NSString *)title titleColor:(UIColor *)titleColor mediumFontSize:(NSInteger)mediumFontSize;

/// 文字button
+ (UIButton *)initWithTitle:(NSString *)title titleColor:(UIColor *)titleColor boldFontSize:(NSInteger)fontSize;

/// 图片button
+ (UIButton *)initWithImage:(UIImage *)image selectedImage:(UIImage * __nullable)selectedImage;

+ (UIButton *)initWithImage:(UIImage * __nullable)image selectedImage:(UIImage * __nullable)selectedImage title:(NSString * __nullable)title selectedTitle:(NSString * __nullable)selectedTitle titleColor:(UIColor * __nullable)titleColor selectedTitleColor:(UIColor * __nullable)selectedTitleColor font:(UIFont * __nullable)font;

@end

NS_ASSUME_NONNULL_END
